package com.fqgj.xjd.user.client;
/**
 * Created by zhangxingyun on 17/7/23.
 */

import com.fqgj.common.api.Response;
import com.fqgj.xjd.user.client.response.UserAuthAccount;
import com.fqgj.xjd.user.client.enums.UserAccountTypeEnum;

/**
 * @ClassName:
 * @Description: 认证账户维护服务
 * @Author zhangxingyun
 * @Create 2017-07-23 15:25
 */
public interface UserAuthAccountService {


    /**
     * 根据账户名获取账户
     * @param accountName
     * @param userAccountTypeEnum
     * @return
     */
    Response<UserAuthAccount> getUserAuthAccountByAccountName(String accountName, UserAccountTypeEnum userAccountTypeEnum);


    /**
     * 获取用户名下所有账户信息
     * @param userCode
     * @return
     */
    Response<UserAuthAccount> getUserAuthAccountListByUserCode(String userCode);


    /**
     * 判断用户认证账户认证状态
     * @param userCode
     * @param userAccountTypeEnum
     * @param checkPassword
     * @return
     */
    Response<UserAuthAccount> getUserAuthAccountByUserCode(String userCode,UserAccountTypeEnum userAccountTypeEnum,Boolean checkPassword);


    /**
     * 保存认证账户信息
     * @param userAuthAccount
     * @return
     */
    Response<Boolean> saveUserAuthAccount(UserAuthAccount userAuthAccount);


}
